package dao.mapper;


import models.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int InsertUser(User user) ;
    User GetUserByUsername(String username);
    int GetUserNum();
    String GetUserPassword(String username);
    void ChangeStatus(@Param("uid") int uid,@Param("result") boolean result);
    String GetUserEmail(String username);
    boolean GetUserStatus(String username);
    User GetUserByUid(int uid);
    void UpdataUser(User user);
    int GetUserIdByName(String uname);

}
